System and method for process scheduling

ABSTRACT

A method for scheduling processing of an instrument. The method receives instrument information, selects an instrument category for the instrument based on the instrument information, the selected instrument category having a calculation set, assigns the instrument to a job corresponding to the calculation set of the selected instrument category; and sends the job to a computing resource. In another aspect, the method also receives a purpose identifier, and chooses the calculation set from two or more calculation sets of the selected instrument category based on the purpose identifier. In another aspect, the calculation set includes two or more calculation sub-sets, each calculation sub-set having a job priority, and the method includes assigning the instrument to two or more jobs corresponding to each of the two or more calculation sub-sets.

CLAIM OF PRIORITY

This application is a continuation of U.S. application Ser. No. 10/338,958, filed Jan. 7, 2003, entitled “SYSTEM AND METHOD FOR PROCESS SCHEDULING,” the contents of which is incorporated herein by reference in its entirety.

BACKGROUND

1. Technical Field

The present disclosures relates to a system and method for process scheduling. More specifically, the present disclosure relates to a method and system for scheduling processes for calculation across one or more processing engines.

2. Description of the Related Art

Financial and investment organizations utilize computer-generated valuations of their trading position for a variety of purposes, such as, for example, to determine profit/loss and to manage market risk and exposure. Valuations may be performed as selected by a valuation request, which may include information identifying the financial instruments to be valuated as well as a context of the valuation. A valuation request may specify the valuation of all financial instruments for an organization, or may be something as simple as the valuation of a single financial instrument

Valuation results may be generated by a process, such as a valuation engine, which may perform one or more calculations using mathematical models. Some valuations may be performed through the execution and invocation of one or more processes.

Each valuation calculation requires processing time, and, as a result, the number of calculations which may be performed may be limited by the availability of computing resources, such as the number of available computers and the amount of computing time available for processing. In some cases, lack of sufficient computing resources may adversely impact an organization's ability to determine and manage market risk.

In response, processes may support a valuation request including an indication to process sub-parts of the valuation request, thereby permitting segmentation of the calculation and creating the possibility and need for a scheduler to schedule and organize these calculations. If a valuation request is split into sub-parts, then each sub-part may be sent as a job to be executed, for example, in parallel, across a number of different machines and/or processes, which may be directed by the scheduler. The scheduler may use criteria to determine the most optimal schedule for submitting jobs to valuation engines that perform the requisite calculations for the valuations.

SUMMARY

The present disclosure relates to a method for scheduling processing of instruments, comprises, receiving instrument information, selecting an instrument category for the instrument based on the instrument information, the selected instrument category may have a calculation set, assigning the instrument to a job corresponding to the calculation set of the selected instrument category, and sending the job to a computing resource. The step of receiving may include receiving a purpose identifier, and the step of selecting may include choosing the calculation set from two or more calculation sets of the selected instrument category based on the purpose identifier. The calculation set may include two or more calculation sub-sets, each calculation sub-set having a job priority, and the step of assigning may further include assigning the instrument to two or more jobs corresponding to each of the two or more calculation sub-sets.

BRIEF DESCRIPTION OF THE DRAWINGS

A more complete appreciation of the present disclosure and many of the attendant advantages thereof will be readily obtained as the same becomes better understood by reference to the following detailed description when considered in connection with the accompanying drawings, wherein:

FIG. 1 shows a block diagram of the system and method for process scheduling according to an aspect of the present disclosure.

FIG. 2 shows a flowchart of the system and method for process scheduling according to an aspect of the present disclosure.

DETAILED DESCRIPTION

In describing a preferred embodiment of the present disclosure illustrated in the drawings, specific terminology is employed for sake of clarity. The present disclosure is not intended to be limited to the specific terminology so selected, and it is to be understood that each specific element includes all technical equivalents which operate in a similar manner.

The system as described may be implemented using a high-level programming language, such as Java, and, therefore, any system supporting the Java Platform, and including network communication capabilities may support the distributed application aspects of the system and method of the present disclosure.

FIG. 1 shows a block diagram of the system and method for process scheduling according to an aspect of the present disclosure. In FIG. 1, a Scheduler 100 may receive a Request 102 including a Selected Context 104 and Selected Instrument Information 106. Additional information corresponding to Selected Instrument Information 106 may be retrieved from a Database 116. An Instrument Set Control Table 108 may be used to choose a Selected Instrument Set Control 110 based on the Selected Instrument Information 106. A Calculation Control for Instrument Set Control Table 112 may be used for Job Assignment 114 based on the Selected Context 104, Selected Instrument Set Control 110, and may be based on Selected Instrument Information 106 and other data retrieved from Database 116. Once received by Pool Scheduling Queue 118, Jobs may be passed by Pool Scheduler 120, to Valuation Pool Queue 122 corresponding to the appropriate Valuation Engine 126 and controlled by Pool Scheduling Queue 124. A Valuation Pool 128 may include one or more Valuation Engines 126, and corresponding Valuation Pool Queue 122, and Valuation Manager 124.

FIG. 2 shows a flowchart of the system and method for process scheduling according to an aspect of the present disclosure.

In one aspect of the system and method of the present disclosure, either prior to or immediately after receipt of Request 102 in Step S200, the system may cache a configuration used to separate the financial instruments into Jobs.

A list of Valuation Pools 128 may be retrieved from the Database 116 and stored in a data structure, for example, a hashmap. A hashmap is a container which may associate a key and an object, and which applies a hash function to the key, providing a near unique 32-bit hash value used to provide the internal address.

A list of Instrument Sets for each Valuation Pool 128 may be retrieved and added to the hashmap. An Instrument Set may contain a list of financial instruments and corresponding types and the corresponding Compute Index thereby providing scope for handling instruments differently, for example, depending upon calculation complexity and time requirements.

A hashmap may be created whose key is the Context and the value is a Valuation Pool 128. Therefore, given the key Context, the corresponding Valuation Pool 128 may be retrieved.

The Valuation Pool 128 may be a list of Pool Objects given the Context is used as the key, and may be a grouped by Context. The Valuation Pool 128 may be used to schedule the distribution of Jobs to the Valuation Pool Queue 122 prior to Valuation Engine 126. Each Pool Object may contain, for example, a list of the computer hosts and ports which execute the Valuation Engines.

In Step S200, the Scheduler receives a Request 102 to determine the value the Selected Instrument. Request 102 includes Selected Instrument Information 106 identifying one or more Selected Instruments and a Selected Context 104. The Selected Instrument may include one or more financial instruments and may be referenced individually or in a set, such as a portfolio.

In one aspect of the system and method of the present disclosure, the Scheduler 100 may retrieve from a Database 116 a Financial Instrument Identification Number, an Instrument Type, an Option Class (if the financial instrument is an option), and a Compute Index, related to the Selected Instrument identified by the Selected Instrument Information 106. In another aspect of the system and method of the present disclosure, this information may be included in the Request 102.

An Instrument Type may describe the type of financial instrument, for example, stock (STK), index (IND), or option (OTC), swap, or other financial product. If the Instrument Type is Option, then Option Class describes the type of option, for example, rainbow, vanilla, etc. For example, a Rainbow option (RBW) is an option with a payout linked to the weighted performance of two or more financial instruments or indexes.

A Context may describe a purpose of calculations to be performed for the Selected Instrument. In one aspect of the system and method of the present disclosure, for example, Context serves as a temporal designator of the information used for the calculation and may exist for calculations performed using overnight information (“Overnight”), trading day information (“Intraday”), and end of trading day information (“End of Day”). Because a calculation may be performed at any time of day, the Context may not correspond to the actual time of day in which the calculation takes place.

Intraday Context may use corresponding current date and current market information. In one aspect of the system and method of the present disclosure, Intraday Context may be selected, for example, when the volatility of a financial instrument increases or decreases, as it may be desirable to determine the impact on current positions. Intraday Context may be selected to perform calculation for all instruments derived from a specific underlying instrument. End of Day Context may use the current date as well as end of day market information. In one aspect of the system and method of the present disclosure, for example, finding profit and loss for a trading day, may be calculated using End of Day Context. Overnight Context may use the date for the next trading day as well as end of day market information.

In Step S202, the Scheduler 100 determines a Selected Instrument Set Control 110 to use based on the Selected Instrument. Instrument Set Control Table 108, as shown in Table 1, may include one or more Instrument Set Controls, each of which may include configuration information regarding how one or more instruments may be grouped for calculation. The Instrument Set Control may include, for example, an Instrument Set Control Identification Number, Instrument Type, Option Class, and Compute Index.

According to one aspect of the system and method of the present disclosure, the Compute Index, maximum number of instruments included per Job, and Job Rank may be changed in order to alter performance.

The Instrument Set Control Identification Number may be a unique identifier assigned to the Instrument Set Control. The Instrument Type and Option Class may identify the types of financial instruments which may be scheduled for processing using an Instrument Set Control.

The Compute Index may be a number assigned to a financial instrument based on its computational intensity, that is, how difficult it is to compute a valuation for.

TABLE 1 Instrument Set Control Table Instrument Set Control ID Instrument Type Option Class Compute Index 1 ALL NULL 0 2 OTC VAN 1 3 OTC VAN 5

The Scheduler 100 may determine the Instrument Set Control to use for the Selected Instrument in the following manner. In one aspect of the system and method of the present disclosure, the Scheduler 100 may choose an Instrument Set Control for a Selected Instrument when the Instrument Type and Option Class of the Selected Instrument match those respective elements of an Instrument Set Control. In another aspect of the system and method of the present disclosure, the Scheduler 100 may first search for Instrument Set Controls having exact matches for Instrument Type and Option Class, and then search for Instrument Set Controls having broader inclusive groups, for example, Instrument Type ALL.

In one aspect of the system and method of the present disclosure, a higher Compute Index number indicates more intensive calculation. In another aspect of the system and method of the present disclosure, among other factors, an Instrument Set Control may be selected for a Selected Instrument only when the Compute Index of the Selected Instrument is greater than or equal to the Compute Index of the Instrument Set Control.

In another aspect of the system and method of the present disclosure, in the event there is more than one eligible Instrument Set Control, then the Instrument Set Control having the highest Compute Index will be chosen for the Selected Instrument.

As shown in Table 1, Instrument Set Control 1 may be chosen for instruments of Instrument Type All, Option Class Null, and which have a Compute Index of 0 or greater. Instrument Set Control 2 may be chosen for instruments of Instrument Type OTC, Option Class Vanilla, and which have a Compute Index of 1 or greater. Instrument Set Control 3 may be chosen for instruments of Instrument Type OTC, Option Class Vanilla, and which have a Compute Index of 5 or greater.

In one example, if an instrument of Instrument Type OTC, Option Class Rainbow (RBW), and Compute Index 1 were presented, then based on information in the Instrument Set Control Table 108, Instrument Set Control 1 would be chosen, as it provides for OTC instruments of all Option Classes, and the Compute Index of the Selected Instrument is greater than the Compute Index of the Instrument Set Control. One reason Instrument Set Controls 2 and 3 are not candidates for this instrument is that they do not provide for instruments having Option Class RBW. Instrument Set Control 1 in this example may be considered the “default” as it may be used for all Instrument Types, Option Types, and all Compute Indexes.

In another example, if an instrument of Instrument Type OTC, Option Class Vanilla (VAN), and Compute Index 6 were presented, then based on information in the Instrument Set Control Table 108, Instrument Set Control 3 will be chosen as it provides for OTC instruments of Option Class VAN, and the Compute Index of the instrument is greater than the Compute Index of the Instrument Set Control. In this example, one reason Instrument Set Control 1 is not used is because another applicable Instrument Set Control having a higher Compute Index exists. Another reason Instrument Set Control 1 is not used is because another candidate Instrument Set Control having an exact Instrument Type and Option Class match exists. While Instrument Set Control 2 may handle the instrument, that Instrument Set Control is not used because an Instrument Set Control 3 is capable of handing the Instrument type and Option Class and has a higher Compute Index.

In Step S204, after an Instrument Set Control is chosen for the Selected Instrument, the Scheduler 100 may find an appropriate Calculation Control based on the Selected Context 104 supplied in the Request 102 using Calculation Control for Instrument Set Control Table 112.

In one aspect of the system and method of the presently claimed invention, Context may not be used, and Calculation Control will be automatically determined once an Instrument Set Control is chosen.

Calculation Control may be a predefined group of one or more calculation types which may be performed. In one aspect of the system and method of the present disclosure, an example of calculation types may be sensitivities, or “Greeks”, for financial instruments. One example of a Greek is a “Delta” calculation, which is the change of value for a one point movement of the underlying instrument. In one aspect of the system and method of the present disclosure, an example of calculation types may be price and compute time. One or more such calculation types may be grouped and referred to as Calculation Controls which may have, for example, a Calculation Control ID number, as shown in Table 2 below. Calculation Controls may include one or more calculation type, and a calculation type may be included in one or more Calculation Control. Calculation Controls may represent a group of calculation types and may be split into smaller subset Calculation Controls having a subset of calculation types in order to affect processing times.

An example of Calculation Controls, listed by Calculation Control ID are listed in Table 2.

TABLE 2 Calculation Control Types Calculation Control ID Calculation Type 1000 Delta 1000 Gamma 1000 Vega 1001 X-Gamma 1002 Delta 1002 Gamma 1002 Vega 1002 X-Gamma

As shown, for example, in Table 2, Calculation Control 1002 contains four Calculation Types Delta, Gamma, Vega, and X-Gamma. Calculation Control 1002 may be split, for example, into Calculation Control 1000 including Delta, Gamma, and Vega, and Calculation Control 1001 including X-Gamma.

Each Instrument Set Control may have one or more associated Calculation Control for each one or more associated Context as shown in Calculation Control for Instrument Set Control Table 112, shown in Table 3, which includes Valuation Pool ID, Context, Calculation Control, maximum number of instruments which may be included per Job, and Job Rank for each Instrument Set Control.

TABLE 3 Calculation Control for Instrument Set Control ID Table Instrument Max Set Valuation Calculation Number of Job Control ID Pool ID Context Control Instruments Rank 1 2 End of Day 1002 50 20 1 2 Overnight 1002 200 10 2 2 End of Day 1002 100 15 3 1 Overnight 1000 5 3 3 2 Overnight 1001 5 6

Once an Instrument Set Control has been is chosen, the Scheduler 100 chooses the Selected Context 104 received in the Request 102 in Step S200 from the available Contexts for the chosen Instrument Set Control.

In the example shown in Table 3, two Contexts are supported for Instrument Set Control 1, “End of Day” and “Overnight”. A Selected Instrument of Instrument Set Control 1, Context “End of Day” will be added to a Job to perform Calculation Control 1002 on a maximum of 50 instruments on Valuation Pool ID 2 with a Job Rank of 20. A Selected Instrument of Instrument Set Control 1, Context “Overnight” will be added to a Job to perform Calculation Control 1002 on a maximum of 200 instruments on Valuation Pool ID 2 with a Job Rank of 10.

As shown in Table 3, a Selected Instrument of Instrument Set Control 3, Context “Overnight” may be split into two entries, each entry having one or more Calculation Controls. The first entry for the Selected Instrument of Instrument Set Control 3, Context “Overnight”, shown in Table 3 Row 4, will be added to a Job to perform Calculation Control 1000 on a maximum of 5 instruments on Valuation Pool ID 1 with a Job Rank of 3. The second entry for the Selected Instrument of Instrument Set Control 3, Context “Overnight”, shown in Table 3 row 5, will be added to a Job to perform Calculation Control 1001 on a maximum of 5 instruments on Valuation Pool ID 5 with a Job Rank of 6.

In Step S206, the Scheduler 100 may assign and create Jobs for Selected Instruments.

A Job may include, for example, Instrument ID for the Selected Instrument, Context, and Calculation Control. Other data used by the Valuation Engine 126, for example, market data, may be determined by the Valuation Engine 126 based on information included in the Job and may be retrieved from Database 116.

In one aspect of the system and method of the present disclosure, the following rules for assigning a Selected Instrument to a Job may apply: if there are no Jobs, then create a new Job capable of processing the Selected Instrument and add the Selected Instrument to that Job. If there is a Job capable of handling the Selected Instrument and the Job has not reached its maximum instrument capacity, then add the Selected Instrument to this Job; otherwise create a new Job and add the Selected Instrument to it.

In Step S208, once one or more Selected Instruments have been assigned Jobs, then the Jobs may be sorted into order by Job Rank and placed into a Pool Scheduling Queue 118 by a Pool Scheduler 120.

A Job Rank may be a number relating to the priority of order in which a Job may be processed. In one aspect of the system and method of the present disclosure, a Job having a lower Job Rank will be processed before a Job having a higher Job Rank.

Valuation Engines 126, for example, Financial Instrument Valuation Engines, which may be run on one or more CPU's distributed across one or more computer host machines and may be available at one or more times of day. A Valuation Pool 128 may be referred to by a corresponding Valuation Pool ID number as shown in Table 4 below.

In the example shown in Table 4, Host Computer 2 has ten Valuation Engines 126 total, eight of which are grouped in Valuation Pool ID 2 and the remaining two are grouped in Valuation Pool ID 3. In one aspect of the system and method of the present disclosure, the number of Valuation Engines 126 may be less than the number of CPU's on a host computer.

TABLE 4 Calculation Pools Table Valuation Pool ID Host ID Number of Engines 1 Host Computer 1 10 2 Host Computer 2 8 3 Host Computer 2 2

In Step S210, the Pool Scheduler 120 may select the Jobs from the Pool Scheduling Queue 118 and place each Job in the correct Valuation Pool Queue 122. The Pool Scheduler 120 may receive information about the Valuation Engine 126 regarding Job status via a Valuation Manager 124 and may receive processing updates, for example, when processing is completed.

In Step S212, Valuation Manager 124 selects Jobs from the Valuation Pool Queue 122 and sends them to the Valuation Engine 126. The Job may include the batch of Selected Instruments as well as any other Instrument Information needed for processing the Job, for example, prices, date.

In one aspect of the system and method of the present disclosure, a Valuation Engine 126 may be used to process calculation types. A Valuation Engine 126 may spread across one or more host computers and host computers may contain one or more Valuation Engines 126.

The Valuation Manager 124 may access information about the Valuation Engine 126. For each Valuation Pool 128 there may be a definition of the Valuation Engines 126 available including technical details of the host and port for connection purposes. While processing a Job a Valuation Engine 126 is not longer available to receive additional Jobs. Once the Job is completed and a Result is created, then that Valuation Engine 126 may be available for further Jobs. Jobs may be taken off the Valuation Pool Queue 122 until all Valuation Engines 126 are active.

In Step S214, when a Valuation Engine 126 completes processing it may transmit the Result to the Scheduler 100 which may send the Result to storage, for example, in a Database 116, and another Job may be taken from the appropriate Valuation Pool Queue 122 for processing.

Numerous additional modifications and variations of the present disclosure are possible in view of the above-teachings. It is therefore to be understood that within the scope of the appended claims, the present disclosure may be practiced other than as specifically described herein. 

1. A computer-implemented method for scheduling processing of an instrument, comprising: receiving an instrument information; selecting an instrument type of the instrument based on the received instrument information; assigning an instrument set control from a plurality of instrument set controls associated with the instrument type based on a computational intensity of computing a valuation for the instrument and a context information; assigning a calculation control associated with a plurality of calculation types based on the assigned instrument set control; assigning the instrument to a job corresponding to the calculation control; and transmitting the job to a computing resource.
 2. The computer-implemented method of claim 1, wherein the context information is a temporal designator that corresponds to one or more of market information, increases in a volatility of the instrument, decreases in the volatility of the instrument, or profits for a period within a trading day.
 3. The computer-implemented method of claim 2, wherein assigning the instrument to the job further comprises, assigning to the job an instrument identifier and the context information.
 4. The computer-implemented method of claim 1, wherein assigning the instrument to the job further comprises, creating a new job when the job corresponding to the calculation control has been assigned a maximum number of instruments; and assigning the instrument to the new job.
 5. The computer-implemented method of claim 1, wherein assigning the instrument to a job further comprises, creating a new job when the job corresponding to the calculation control does not exist; and assigning the instrument to the new job.
 6. The computer-implemented method of claim 1, wherein transmitting the job to the computing resource further comprises, transmitting the job to the computing resource in an order according to a job priority associated with the calculation control.
 7. The computer-implemented method of claim 1, wherein the calculation control comprises at least one financial calculations.
 8. The computer-implemented method of claim 1, wherein the computing resource comprises one or more computing engines.
 9. The computer-implemented method of claim 8, wherein the one or more computing engines is associated with the calculation control.
 10. The computer-implemented method of claim 1, wherein the calculation control comprises at least two calculation sub-sets, each of the at least two calculation sub-sets having a job priority, and wherein the step of assigning the instrument to the job further includes assigning the instrument to at least two jobs corresponding to each of the two at least two calculation sub-sets.
 11. The computer-implemented method of claim 10, wherein transmitting the job to a computing resource further comprises, transmitting the at least two jobs to the computing resource in an order based on the job priority.
 12. A system for scheduling processing of an instrument, comprising: a job scheduling unit, the job scheduling unit comprising modules that: receive an instrument information, assign an instrument type of the instrument based on the received instrument information, assign an instrument set control from a plurality of instrument set controls associated with the instrument type based on a computational intensity of computing a valuation for the instrument the instrument and a context information, assign a calculation control associated with a plurality of calculation types based on the assigned instrument set control, assign the instrument to a job corresponding to the calculation control, and transmit the job to be processed; and a computing resource that receives the transmitted job to be processed.
 13. The system of claim 12, wherein the context information is a temporal designator that corresponds to one or more of market information, increases in a volatility of the instrument, decreases in the volatility of the instrument, or profits for a period within a trading day.
 14. The system of claim 12, wherein the modules create a new job when a job corresponding to the calculation control does not exist or already has a predetermined number of instruments assigned thereto.
 15. The system of claim 12, wherein the job scheduling unit transmits the job to the computing resource in an order according to a job priority associated with the calculation control.
 16. The system of claim 12, wherein the calculation control comprises at least one financial calculation.
 17. The system of claim 12, wherein the computing resource comprises one or more computing engines.
 18. The system of claim 17, wherein the one or more computing engines is associated with the calculation control.
 19. The system of claim 12, wherein the calculation control comprises at least two calculation sub-sets, each of the at least two calculation sub-sets having a job priority, and wherein the scheduling unit assigns the instrument to two or more jobs corresponding to each of the at least two calculation sub-sets.
 20. The system of claim 19, wherein the scheduling unit transmits the two or more jobs to the computing resource in an order according to the job priority. 